// Copyright (C) joyinter
// All rights reserved.
// 
// Author : Jiang Li
// Date   : 2004-12-29

#ifndef __TM_UPDATEROOM_H_SERVER_SVR_MAIN__
#define __TM_UPDATEROOM_H_SERVER_SVR_MAIN__

#pragma once

#include <common/svr_base/base_timer.h>
#include <common/svr_base/svr_asyncobj.h>

namespace JoyServer
{

class CJoyMainServer;
class CJoyAsyncQueue;

class CJoyTmUpdateRoom : public CJoyTimerObject
{
public:
    CJoyMainServer* m_server;
    CJoyAsyncQueue* m_asyncQueue;

    virtual void OnExecute();
public:
    CJoyTmUpdateRoom();
    virtual ~CJoyTmUpdateRoom();

    virtual bool Create(CJoyMainServer* pServer);
    virtual void Destroy();
};

} // namespace JoyServer

#endif  // __TM_UPDATEROOM_H_SERVER_SVR_MAIN__